﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 9/9/2009
 * Time: 1:46 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Windows.Forms;
using System.Drawing;

namespace Buaya.Util
{
	/// <summary>
	/// Description of SwfUtility.
	/// </summary>
	public class SwfUtility
	{
		public SwfUtility()
		{
		}
		
		public static void AlternateColor(ListViewItem li)
		{
			li.BackColor = li.Index % 2 == 0 ? Color.White : Color.OldLace;
		}
		
		public static void SetupComboBox(ComboBox box, object ds, string vm, string dm)
		{
			box.DataSource = ds;
			box.ValueMember = vm;
			box.DisplayMember = dm;
		}
	}
}
